package com.itheima.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
public class ImportEntity {
    @Excel(name = "今日到诊数")
    private Integer todayVisitsNumber; // 今日到诊数
    @Excel(name = "日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date reportDate; // 日期
    @Excel(name = "新增会员数")
    private Integer todayNewMember; // 今日新增会员
    @Excel(name = "本周到诊数")
    private Integer thisWeekVisitsNumber; // 本周到诊数
    private List<HotSetmeal> hotSetmeal; // 热门套餐
    @Excel(name = "本月新增会员数")
    private Integer thisMonthNewMember; // 本月新增会员
    @Excel(name = "本周新增会员数")
    private Integer thisWeekNewMember; // 本周新增会员
    @Excel(name = "总会员数")
    private Integer totalMember; // 总会员数
    @Excel(name = "本月预约数")
    private Integer thisMonthOrderNumber; // 本月预约数
    @Excel(name = "本月到诊数")
    private Integer thisMonthVisitsNumber; // 本月到诊数
    @Excel(name = "今日预约数")
    private Integer todayOrderNumber; // 今日预约数
    @Excel(name = "本周预约数")
    private Integer thisWeekOrderNumber; // 本周预约数

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class HotSetmeal {
        @Excel(name = "占比")
        private Double proportion; // 占比
        @Excel(name = "套餐名称")
        private String name; // 套餐名称
        @Excel(name = "套餐数量")
        private Integer setmeal_count; // 套餐数量
    }
}
